<?php 
error_reporting(E_ALL);
session_start();
require_once('constants.php');
require_once('functions.php');
include('classes/userClass.php');



#conect to shop database	
$shopObj = new mysqlClass();
if(isset($_POST['change_shop'])){

	$result = $shopObj->fetch_one("SELECT user_shops.id,user_shops.db_name FROM user_shops, user WHERE user_shops.user_id = user.id  
									AND user.session_user='{$_SESSION['session_user']}' AND user_shops.id='{$_POST['change_shop']}'");

	$_SESSION['shop_name']='neoflux_'.$result['db_name'];
	$_SESSION['shop_creation']=$result['id'];

}
?>